package com.cw.japp

class Address {

	String additionalName
	String addressLine1
	String addressLine2
	String street
	String town
	String zip
	String phone
	String fax
	Integer status
	Date lastModifiedDate
	Date createdDate
	State state

	static hasMany = [user: User]
	static belongsTo = [State]

	static mapping = {
		id column: "address_id"
		addressLine1 column: "address_Line_1"
		addressLine2 column: "address_Line_2"
		version false
	}

	static constraints = {
		additionalName nullable: true
		addressLine1 nullable: true
		addressLine2 nullable: true
		street nullable: true
		town nullable: true
		zip nullable: true
		phone nullable: true
		fax nullable: true
		status nullable: true
		lastModifiedDate nullable: true
		createdDate nullable: true
	}
}
